class Person {
  name: string
  constructor(name: string) {
    this.name = name
  }
  sayHi() {
    console.log('hello')
  }
}

const p1 = new Person('张三')
console.log(p1)
p1.sayHi()
